#ifndef ledsh
#define ledsh

typedef struct {
	unsigned char r;
	unsigned char g;
	unsigned char b;
} rgb;

extern rgb black;

int leddetect(void);
int ledcount(void);

void setcolor(int led, rgb color);

rgb mulcolor(rgb base, unsigned char val);
rgb lerpcolor(rgb a, rgb b, unsigned char val);

#endif
